package com.hgm.flopgame2.database

import androidx.room.*

@Dao
interface ScoreDao {

    @Insert
    fun insertScore(score: Score)

    @Query("UPDATE SCORE set TIME=:time WHERE name=:name")
    fun updateScore(time: Long, name: String)

    @Query("SELECT * FROM SCORE ORDER BY TIME ASC LIMIT 6")
    fun getAllScore(): List<Score>
}